<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	 <%
		String type = request.getParameter("type");
		if(type != null){
			if(type.equals("0")){
	%>
			<font style="color: red;">用户名密码或错误</font>
	<%			
			}else if(type.equals("-2")){
	%>
			<font style="color: red;">用户不可用！</font>
	<%		
			}else{
	%>		
			<font style="color: red;">服务器繁忙,稍后再试！</font>
	<%		
			}
		}
	%>
	<form method="post" action="LoginServlet.do">
		用户名:<input name="uname"></br>
		密码:<input name="passwd" type="password"></br>
		<input type="submit" value="登陆">
	</form>
	<a href="regist.jsp">注册</a>
</body>
</html>